This is the ugliest thing I have ever made in my entire life, but my previous and far more elegant solution was 17*5 in the secondary. 